<!--conf
<sample>
              <product version="1.4" edition="pro"/>
                     <modifications>
                            <modified date="070101"/>
                     </modifications>
               </sample>
 --> 
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">

<html>
<head>
	<title>Custom output with math calculations</title>
	
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
	<link rel="stylesheet" type="text/css" href="../../../codebase/dhtmlx.css"/>
	<script src="../../../codebase/dhtmlx.js"></script>
</head>

<body>
	<h1>Custom output with math calculations</h1>
	<p> As you could see in the previous sample, you are allowed to calculate cells values automatically by math formulas. Moreover you have a possibility to customize cells applying any custom cells types.</p>
	<div id="gridbox" style="width:510px;height:230px;background-color:white;"></div>
<br>

<script>
	mygrid = new dhtmlXGridObject('gridbox');
	mygrid.setImagePath("../../../codebase/imgs/");
	mygrid.setHeader("Book Title,Author,Price,Quantity,Total");
	mygrid.setInitWidths("150,120,80,80,80")
	mygrid.setColAlign("left,left,right,right,right")
	mygrid.setColTypes("ed,ed,price,ed,price[=c2*c3]");
	mygrid.setColSorting("str,str,int,int,int")
    mygrid.setMathRound(2);
	mygrid.init();
	mygrid.setSkin("dhx_skyblue");
	mygrid.loadXML("../common/grid_math2.xml");
</script>

</body>
</html>
